﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
using OctoOS;

/// <summary>
/// Summary description for ArticleMeta
/// </summary>
[DataContract]
public class SectionMeta
{
    [DataMember(Order = 1)]
    public short SortOrder { get; private set; }


    private SectionMeta()
    {

    }

    public SectionMeta(short sortOrder)
    {
        SortOrder = sortOrder;
    }

    public static SectionMeta Create(byte[] array)
    {
        return ConvertUtility.FromProtoBuf<SectionMeta>(array);
    }

    public byte[] ToArray()
    {
        return ConvertUtility.ToProtoBuf<SectionMeta>(this);
    }
}